package com.offcn.gateway.filter;

public class URLFilter {

    private static final String noAuthUrl = "/api/user/add,/api/user/login";

    public static boolean hasAuth(String uri) {
        String[] split = noAuthUrl.split(",");
        for (String s : split) {
            if (s.equals(uri)) {
                return true;
            }
        }
        return false;
    }
}
